# !/usr/bin/env python
# -*- coding: utf-8 -*-

# 接口可以用来设置背景图为网格
if __name__ == '__main__':
    import numpy as np
    import matplotlib.pyplot as plt
    x = 'a', 'b', 'c', 'd'
    y = [15, 30, 45, 10]
    plt.grid()
    # 也可以设置颜色、线条宽度、线条样式
    # plt.grid(color='g',linewidth='1',linestyle='-.')
    plt.plot(x, y)
    plt.show()
